const express = require('express');
const router = express.Router();
const auditLogController = require('../controllers/auditLogController');
const authMiddleware = require('../middleware/authMiddleware');

// 获取用户登录历史记录
router.get('/login-history', authMiddleware.authenticateToken, auditLogController.getUserLoginHistory);

module.exports = router; 